<?php

	function printFilters($xml)
		{
			
			$xml = simplexml_load_string($xml);
			
			foreach($xml->children() as $child)
			{
				foreach($child->children() as $child2)
				{
					foreach($child2[0]->attributes() as $a => $b) {
						if ($a=='ixBug')
							$ix = $b;
					}
						echo "<a href='https://csnmedia.fogbugz.com/default.asp?" . $ix . "' target='_blank'>" . substr($child2->sTitle,0,405) .  "</a><br />Due: " . theDate($child2->dtDue) . " (<a href='#' onclick='javascript:resolveCase(" . $ix . ",\"#ajax\");'>resolve</a>)<br /><br />";
				}
			}
		}

	function theDate($dt) {
		date_default_timezone_set('America/New_York');
		return date("M d, H:i", strtotime($dt));
	}

?>